/*
 * @Author: zzd993
 * @Date: 2023-02-09 13:42:44
 * @LastEditors: zzd993
 * @LastEditTime: 2023-02-17 16:00:21
 * @FilePath: \手写vue2源码\src\index.js
 * Copyright (c) 2023 by ZZD, All Rights Reserved. 
 */
import { initGlobalAPI } from './globalAPI'
import { initMixin } from './init'
import { initLifeCycle } from './lifecycle'
import { nextTick } from './observe/watcher'
// 没有采用class的写法，因为方法会全都耦合到一起
function Vue(options) { // options就是用户的选项
    this._init(options)
}

Vue.prototype.$nextTick = nextTick
initMixin(Vue)
initLifeCycle(Vue)
initGlobalAPI(Vue)



// 最终调用的是这个
Vue.prototype.$watch = function(exprOrFn, cb, options={}) {
     
}







export default Vue